import request from '@/utils/request'
// import apiRequest from '@/utils/request'

// // 登录
// export function login(data) {
//   return request({
//     url: '/manager/login',
//     method: 'post',
//     data
//   })
// }

// 订单管理 分页数据
// export function getOrderList(data) {
//   return request.post('/manager/order-manager/order/page', data)
// }
// 分页数据
export function getOrderList(data) {
  return request({
    url: '/manager/order-manager/order/page',
    method: 'post',
    data
  })
}

export function fetchProvinces() {
  return request.get('/manager/areas/children')
}

export function getEmployeeDetail(id) {
  return request({
    url: `/manager/order-manager/order/${id}`
  })
}

// 运单管理分页数据
export function getOrderList1(data) {
  return request({
    url: '/manager/transport-order-manager/page',
    method: 'post',
    data
  })
}

export function getEmployeeDetail1(id) {
  return request({
    url: `/manager/transport-order-manager/${id}`
  })
}
